/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lintulaskenta.utils;

/**
 *
 * @author jukkapajunen
 * Kopioitus suoraan Esko Piiraiselta
 */
public interface TipuAPIClientInterface {

    /**
	 * Kunnat
	 */
	public static final String	MUNICIPALITIES	= "municipalities";

	/**
	 * Lintulajit
	 */
	public static final String	SPECIES	= "species";

	/**
	 * Henkilöt
	 */
	public static final String	RINGERS	= "ringers";

	/**
	 * Sanasto ja muut koodistot
	 */
	public static final String	CODES = "codes";

	/**
	 * ELY-keskukset (ympäristökeskukset)
	 */
	public static final String	ELY_CENTRES	= "ely-centres";

	/**
	 * Henkilöiden synonyymit.
	 */
	public static final String	OBSERVER_SYNONYMS	= "observer-synonyms";

        public void close();

        public Selection getAsSelection(String ressourcename) throws Exception;
	
	Selection getAsSelection(String ressourcename, int countOfFields) throws Exception;

        public Document getAsDocument(String ressourcename) throws Exception;

	public Document getAsDocument(String ressourcename, String id) throws Exception;

        public TipuApiResource get(String resourcename) throws Exception;
}
